﻿namespace MQTTServer.Models
{
    /// <summary>
    /// 增加/修改/删除人员返回
    /// </summary>
    public class EditOrDelPersonAck
    {
        /// <summary>
        ///  增加/修改/删除人员返回
        /// </summary>
        public string Operator { get; set; }
        /// <summary>
        /// 消息 id,区分每一条消
        /// </summary>
        public string MessageId { get; set; }
        /// <summary>
        ///  EditOrDelPersonAckInfo
        /// </summary>
        public EditOrDelPersonAckInfo Info { get; set; }
    }

    public class EditOrDelPersonAckInfo
    {
        /// <summary>
        /// 平台生成的 id,唯一标识不同人员， 建议使用身份证号
        /// </summary>
        public string? CustomId { get; set; }
        /// <summary>
        /// 一体机设备号 id,返回值
        /// </summary>
        public string? FacesluiceId { get; set; }
        /// <summary>
        /// 一体机上自动生成的 ID
        /// </summary>
        public string? PersonId { get; set; }
        /// <summary>
        /// 操作结果
        /// </summary>
        public string? Result { get; set; }
        /// <summary>
        /// 当 result 为“fail”时，错误信息
        /// </summary>
        public string? detail { get; set; }
    }
}